package com.xiaoxx.model.dto.sys;

import com.xiaoxx.common.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author :HX
 * @date : 2023/7/19
 */
@Data
@ApiModel(value = "SysUserDto", description = "用户Dto")
public class SysUserDto extends BaseDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账号/用户名")
    @NotBlank(message = "账号/用户名不能为空")
    private String username;

    @ApiModelProperty(value = "性别 (0-未知 1-男 2-女)")
    private Integer gender;

    @ApiModelProperty(value = "头像")
    private String headPic;

    @ApiModelProperty(value = "手机号(第二账号)")
    @NotBlank(message ="手机号不为空" )
    private String phone;

    @ApiModelProperty(value = "姓名")
    private String fullName;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "角色id")
    @NotBlank(message = "用户角色不为空")
    private String roleId;

}
